package com.example.nio.service;

import com.example.nio.commons.Agent;

public interface AgentService {
    /**
     * 添加
     * @param agent
     * @return  int
     * @throws Exception
     */
    public int add(Agent agent) throws Exception;

    /**
     * 修改
     * @param agent
     * @return  int
     * @throws Exception
     */
    public int modify(Agent agent) throws Exception;


    /**
     * 根据提供列名查询
     * @param agent
     * @return  PublicAddress
     * @throws Exception
     */
    public Agent getAgentByColumn(String agent) ;

}
